package com.mrjoew.weekend.entities.po;

import com.mrjoew.weekend.entities.BasePO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.SQLDelete;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Christopher Jones
 * @ClassName SysFiles
 * @explain 文件
 * @date 2020/6/19 0019 12:00
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@SQLDelete(sql = "UPDATE `sys_files` SET deleted = 1 WHERE id = ?")
@Table(name = "sys_files")
@Entity
public class SysFilesPO extends BasePO {

    /**
     * 文件链接
     */
    private String url;

    /**
     * 文件大小
     */
    private Integer size;

    /**
     * 文件类型
     */
    private String mediaType;

    /**
     * 文件 domain
     */
    private String domain;
}
